/**
 * @file BLE_BT616.h
 * @author hwm
 * @brief 
 * @version 0.1
 * @date 2022-03-25
 * 
 * @copyright Copyright (c) 2022
 * 
 */

#pragma once

#define MAX_RECV_DATA_SIZE (256)
#define MAX_RECV_DATA_BAK_SIZE (64)
#define MAX_MQ_SIZE (10)
#define MAX_READ_SIZE (64)

#define PIN_KEY_1 (29)
#define PIN_KEY_2 (30)
#define PIN_LED_DOOR (91)

#define TIMER_TIMEOUT (500)

#define uart2_name "uart2"

typedef enum
{
    MQ_KEY1 = 0,
    MQ_KEY2,
    MQ_KEY3,
    MQ_KEY1_MAX = 0Xff,
} mq_type_t;

typedef struct
{
    mq_type_t mq_type;
} mq_data_t;

int ble_BT616_init(void);


